# Copyright 2010 Michael Penhallegon

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,

import pathloader

from django.conf.urls.defaults import *
import django.views.generic.simple
from django.contrib import admin
import django.contrib.comments
from dj import Feeds, views
import dj.blog.urls 


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^about/',views.about),
    (r'^blog/',include(dj.blog.urls)),
    (r'^links/',views.links),
    #(r'^photos/',include(dj.photos.urls)),
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
)
urlpatterns += patterns('django.views.generic.simple',
    (r'^robots.txt$','redirect_to',{'url':'http://crimsonfae.net/static/robots.txt','permanent':True}),
    (r'^resume/$','redirect_to',{'url':"http://docs.google.com/View?id=dgvdt5jg_45f2p95ghq"
}),
    (r'^$','redirect_to',{'url':'/about'}),
)






